package com.odontosis.view.login;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.lang.StringUtils;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.odontosis.service.UsuarioService;
import com.odontosis.view.OdontosisAction;

public class AcaoLogout extends OdontosisAction<UsuarioService> {
	@Override
	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response) throws Exception {
		request.getSession().removeAttribute("usuario");
		return super.execute(mapping, form, request, response);
	}

}
